<%@ include file="../include.jsp" %>

<tiles:insertDefinition name="component.layout.SubPanel">
   <tiles:putAttribute name="title" value="Login" />
   <tiles:putAttribute name="content">
   
<c:set var="newUserUrl"><c:url value="/register/social.html" /></c:set>
<c:set var="semail"><c:url value="" /></c:set>

<form:form modelAttribute="user" action="${newUserUrl}">
<div id="form" class="form">
   <div class="field">
      <div class="field-error"><form:errors path="name" /></div>
      <label for="name"><fmt:message key="login.username.field" /></label>
      <form:input cssClass="textBox" path="name" size="30" maxlength="255" value="${socialProfile.username}" />
   </div>
   
   <div class="field">
      <div class="field-error"><form:errors path="userDetails.email" /></div>
      <label for="email"><fmt:message key="login.email.field" /></label>
      <form:input cssClass="textBox" path="userDetails.email" size="30" maxlength="255" value="${socialProfile.email}" />
   </div>
   
   <div class="field">
      <div class="field-error"><form:errors path="verificationCode" /></div>
      <label for="verificationCode"><fmt:message key="register.verificationCode.label" /></label>
      <form:input cssClass="textBox" path="verificationCode" size="21" maxlength="20" />
   </div>
   
   <div class="submit">
      <input type="submit" value="<fmt:message key='submit' />" />
   </div>

</div>
</form:form>

</tiles:putAttribute>
</tiles:insertDefinition>